import App from './App'
import "uview-ui/index.scss";
// #ifndef VUE3
// 1. 导入 store 的实例对象
import store from 'store/store.js'
import Vuex from 'vuex'
Vue.use(Vuex)


import Vue from 'vue'
import uView from "uview-ui";
import {
	baseUrl,
	request
} from 'pro.js'
//导入uview组件库
Vue.use(uView);

Vue.prototype.getimageBaseUrl = function(name){ return 'https://localhost:8989/image/download?name='+name}
Vue.prototype.$baseUrl = baseUrl
Vue.prototype.$request = request
Vue.config.productionTip = false
App.mpType = 'app'
// 获取头像
Vue.prototype.getAvatar = function(id){ let arr=['1.jpg','2.jpg','3.jpg','4.jpg','5.jpg','6.jpg','7.jpg','8.jpg','9.jpg','10.jpg'] 
return arr[id%10]}

const app = new Vue({
	...App,
	store,
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
